home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
strpp300.zip
/
FILESTR.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-11
|
1KB
|
42 lines
/* -------------------------------------------------------------------- */
/* String++ Version 3.00 04/10/93 */
/* */
/* Enhanced string class for Turbo C++/Borland C++. */
/* Copyright 1991-1993 by Carl W. Moreland */
/* */
/* filestr.h */
/* -------------------------------------------------------------------- */
/* Class for decomposing a filespec into its drive, path, name, and */
/* extension. */
/* -------------------------------------------------------------------- */
#ifndef _FILESTR_H
#define _FILESTR_H
#ifdef BCCL
#include "strng.h"
#else
#include "str.h"
#endif
class FileString
{
public:
String Drive; // Ex: "C:"
String Path; // Ex: "\BC\CLASSLIB\INCLUDE"
String FileName; // Ex: "STRNG.H"
String Name; // Ex: "STRNG"
String Ext; // Ex: "H"
FileString(void) {};
FileString(const char*);
FileString(const String&);
void operator=(const char*);
void operator=(const String&);
private:
void Process(const String&);
};
#endif